'use strict';

const Controller = require('egg').Controller;

class CartController extends Controller {
  // 添加购物车
  async  add() {
    const { ctx } = this;
    console.log(ctx.query);
    var msg = await ctx.service.cart.add(ctx.query);
    ctx.body ={
      code:200,
      msg,
    }
  };
}

module.exports = CartController;